<span class="table" id="table_<%=table.id%>">
    餐桌：<%=h table.name %>
    <span style="float:right">
        <%= link_to_remote image_tag("blank.png",:title => "隐藏该餐桌",:class=>"delete_item"), :url=>{:controller=>"top_tables",:action=>"hide_table",:id=>table.id},:class=>"style='float:right'"%>
    </span>
    <hr/>
    <ul id="table_<%=table.id%>_users">
        <%for user in table.users%>
            <%=render :partial=>'top_tables/table_user',:locals=>{:table=>table,:user=>user}%>
        <%end%>
    </ul>
</span>
<%=drop_receiving_element("table_#{table.id}",:accept=>'.pending_allocation',:with=>"'user_id='+ encodeURIComponent(($(ui.draggable).attr('id')).split('_').last()) + ';current_table=' + #{table.id}+ ';table=' + encodeURIComponent(($(ui.draggable).attr('id')).split('_').first())",:url=>{:action=>'allocation_user_to_table'})%>